import axios from "./axios"

export default {
    // 用户登录
    userLogin: (data) => {
        return axios({
            method: "post",
            url: "user/login",
            data
        })
    },
    // admin登录
    adminLogin: (data) => {
        return axios({
            method: "post",
            url: "admin/login",
            data
        })
    },

    // 消息分页 昵称模糊
    getMessageList: (data) => {
        return axios({
            method: "get",
            url: "message/getPage",
            params: {
                "pageNo": data.pageNo,
                "pageSize": data.pageSize
            }
        })
    },

    // 部门列表
    getorgList: (data) => {
        return axios({
            method: "post",
            url: "org/list",
            data
        })
    },
}